package com;

public class Seat {
    private String seatId;
    private int rowNum;
    private int colNum;
    private String status;

    public Seat(String seatId, int rowNum, int colNum) {
        this.seatId = seatId;
        this.rowNum = rowNum;
        this.colNum = colNum;
        this.status = "空闲";                           }
    public void toggleStatus() {
        this.status = "已售".equals(status) ? "空闲" : "已售";
                               }
    public String getSeatId() { return seatId; }
    public int getRowNum() { return rowNum; }
    public int getColNum() { return colNum; }
    public String getStatus() { return status; }
    public void setStatus(String status) { this.status = status; }
                 }